package com.litblue.api.client;

import com.litblue.api.fallback.GetArtWorkClientFallbackFactory;
import com.litblue.starter.pojo.artwork.query.LitArtworkInfoQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;


@FeignClient(value = "artwork-service",fallbackFactory = GetArtWorkClientFallbackFactory.class)
public interface GetArtWorkClient {

    @GetMapping("/art/workInfo/queryUserHomeData")
    Integer queryUserHomeData(@SpringQueryMap LitArtworkInfoQuery litArtworkInfoQuery);

    @GetMapping("/art/test")
    String getTestContent();

}